package net.sureon.common;

import java.text.SimpleDateFormat;

public class DateFormat {
	private DateFormat() {

	}

	public static String formatToDetail(java.util.Date date) {
		String str = "";
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		str = sdf.format(date);
		return str;
	}
	
	public static String formatToSimple(java.util.Date date) {
		
		String str = "";
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		str = sdf.format(date);
		return str;
	}
}
